package cn.syw.service;
import java.util.List;
import java.util.Map;

import cn.syw.dao.RoleJdbcDaoImpl;
import cn.syw.dao.iface.RoleDao;
import cn.syw.service.iface.RoleService;
public class RoleServiceImpl implements RoleService{
	RoleDao roleDao = new RoleJdbcDaoImpl();
	@Override
	public List<Map<String,Object>> queryRoles() {
		
		List<Map<String,Object>> list = roleDao.queryRoles();
		return list;
	}

	@Override
	public Map<String, Object> queryById(String id) {
		Map<String, Object> role = roleDao.queryById(id);
		return role;
	}

	@Override
	public int deleteRole(String id) {
		int num = roleDao.deleteRole(id);
		return num;
	}

}
